// routes/wordRoutes.js
const express = require('express');
const router = express.Router();
const wordController = require('../controllers/wordController');

// 创建单词
router.post('/create', wordController.createWord);
// 更新单词
router.post('/update', wordController.updateWord);

// 删除单词
router.post('/delete', wordController.deleteWord);

router.post('/get', wordController.findWordByName);

router.post('/getAll', wordController.getWordAll);

module.exports = router;